import time
import logging
from common.uitls.doLog import DoLog
dolog=DoLog()
dolog=dolog.ste_get_logger(logging.INFO)

from selenium.webdriver.chrome import webdriver
from selenium.webdriver.common.by import By
from common.base import BasePage

class Sousuo(BasePage):
    sscE=(By.NAME,'keywords')
    bomE=(By.NAME,'imageField')

    def sousuo(self,a):

        self.getElement(*self.sscE).clear()

        self.getElement(*self.sscE).send_keys(a)
        self.getElement(*self.bomE).click()


if __name__=='__main__':
    l=Sousuo()
    l.sousuo(a="裤子")
